//var serverBaseUrl = 'http://vn-web-cleaner.appspot.com/';
var serverBaseUrl = 'http://dummy.com:8888/vn-web-cleaner/war/';
var basename = getInjectedFileBaseName();


var script = serverBaseUrl + 'scripts/' + basename + '.js';
console.error(script);
$.ajax({
    url:script,
    dataType:'text',
    success:function (resp) {
        try {
            eval(resp);
        } catch (err) {
            console.error(err);
        }
    }
});

function getInjectedFileBaseName() {
    return window.location.host.replace(/^w{3}\./, '');
    var domain = window.location.host;
    var parts = domain.split('.');
    var filename = parts.pop();
    var host = parts.pop();
    if (host) {
        filename = host + '.' + filename;
    }

    return filename;

}